<script>
import componentsUserProfile from '../../common/components/UserProfile'

export default {

    name: 'UserProfile',
    extends: componentsUserProfile,
    computed: {
        detailData() {

            let userData = this.userObj,
                detailData = this.getDetailData;

            detailData.lifestyle += this.userProfilePartMixin_motorcycle(userData);
            detailData.lifestyle += this.userProfilePartMixin_ridingHabits(userData);

            if (detailData.appearance.length > 3) {
                detailData.appearance = detailData.appearance.substring(0, detailData.appearance.length - 2);
            }

            if (detailData.background.length > 3) {
                detailData.background = detailData.background.substring(0, detailData.background.length - 2);
            }

            if (detailData.lifestyle.length > 3) {
                detailData.lifestyle = detailData.lifestyle.substring(0, detailData.lifestyle.length - 2);
            }

            return detailData;
        },

    },
}

</script>
